package com.zw.user.controller;/*
 *@program:java-cloud-prevalence
 *@author:zw
 *@Time: 2022/12/10
 *@description: 支持Security认证调用控制类
 */

import com.zw.object.system.SysUser;
import com.zw.user.service.SysUserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(tags = "Security认证获取对象接口")
@RestController
@RequestMapping("/admin/system/sysUser")
public class UserSecurityController {
    @Autowired
    private SysUserService sysUserService;

    @GetMapping("/user")
    public SysUser getUserByUsername(@RequestParam("username") String username){
        SysUser user = sysUserService.getUserByUsername(username);
        return user;
    }
}
